MouseMove

Moves the mouse pointer to a location. QA Wizard Pro may record mouse move statements to move from one unknown control to another so the controls can be located during playback. You can also use this statement to move the mouse anywhere on the screen.

Syntax

MouseMove(xCoordinate, yCoordinate, WaitTime)

Arguments

Argument Description
xCoordinate X coordinate to indicate the horizontal pixel location to move the mouse to, relative to the window or control. If a window or control is not specified, the coordinate is relative to the screen and must be within the available pixels on the test computer's screen.
yCoordinate Y coordinate to indicate the vertical pixel location to move the mouse to, relative to the window or control. If a window or control is not specified, the coordinate is relative to the screen and must be within the available pixels on the test computer's screen.
WaitTime Number of milliseconds to wait after the previous statement before moving the mouse pointer to the location.

Supported objects

Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window

Example

Window("Report a Bug").MouseMove(325, 225, 5000)

low-level action